package jinyilw.swing.visuals.Rcomp;

import javax.swing.Action;
import javax.swing.Icon;

import jinyilw.swing.rlaf.ui.RoundButtonUI;

public class RoundButton extends RButton
{
	private static final long serialVersionUID = -4862318255277649059L;

	public RoundButton()
	{
		super();
	}

	public RoundButton(Icon icon)
	{
		super(icon);
		setSize(icon.getIconWidth(), icon.getIconHeight());
	}

	public RoundButton(String text)
	{
		super(text);
	}

	public RoundButton(Action a)
	{
		super(a);
	}

	@Override
	public void updateUI()
	{
		if (rButtonUI == null)
			rButtonUI = new RoundButtonUI();
		setUI(rButtonUI);
	}
}
